/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:何人亮
 * Date:2024-11-15
 * 22:25
 */
public class Test {
    public static void main(String[] args) {

        //write your code here........
        long n=0;
        long prev=0;
        long sum=0;
        for(int i=0;i<10;i++){
            n=(long)(9*Math.pow(10,i)+prev);
            prev=n;
            System.out.println(n);
            sum+=n;
        }
        System.out.println(sum);
    }
}
